// mutations =>  commit(type, payload)
// actions => dispatch(type, payload)

export default {
  addTodo({ commit }: any, payload: any) {
    commit('addTodo', payload);
  },
  toggleTodo({ commit }: any, id: any) {
    commit('toggleTodo', id);
  },
  removeTodo({ commit }: any, id: any) {
    commit('removeTodo', id);
  },
};
